# 
FROM openjdk:11
 
# env
ENV ER_HOME=/opt/elastic-resource
ENV PATH=$PATH:$ER_HOME/bin
 
# 
RUN wget http://192.168.3.2:8080/er/elastic-resource-1.0.31-SNAPSHOT.tgz \
    && tar -xvf elastic-resource-1.0.31-SNAPSHOT.tgz \
    && mv elastic-resource $ER_HOME \
    && rm elastic-resource-1.0.31-SNAPSHOT.tgz
 